<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>万里金融系统-产品</title>

	<link rel="stylesheet" href="../../plugins/bootstrap/css/bootstrap.min.css" type="text/css">
	</link>
	<link rel="stylesheet" href="../../plugins/FlatUI/dist/css/flat-ui.css" type="text/css">
	</link>
	<link rel="shortcut icon" href="../../plugins/FlatUI/dist/img/favicon.ico">
	<link rel="stylesheet" href="../../css/css.css">
	<script type="text/javascript" src="../../js/jquery.js"></script>
	<script type="text/javascript" src="../../plugins/FlatUI/dist/js/flat-ui.js"></script>
	<script type="text/javascript" src="../../js/base.js"></script>
	<script src="../../js/template.js"></script>
	<script type="text/javascript">
		$(function () {
			setInterval(function () {
				var t = new Date();
				var ts = "当前时间：" + t.getFullYear() + "年"
					+ (t.getMonth() + 1) + "月" + t.getDate() + "日 "
					+ t.getHours() + ":" + t.getMinutes() + ":"
					+ t.getSeconds() + "";
				$("#currentTime").html(ts);
			}, 400);

			var productId = sessionStorage.getItem('productId');

			$.ajax({
				url: commonurl + "/selectProductById.product",
				type: "POST",
				data: {
					"productId": productId
				},
				dataType: "json",
				success: function (data) {
					if (data.success) {
						var obj = data.obj;
						$("#proName").html("产品名称：" + obj.proName);
						$("#proRate").html(
							"放贷利率 " + obj.rateFrom + "%-" + obj.rateTo
							+ "%");
						$("#proCompany").html(
							"发行单位：" + obj.company.companyName);
						$("#proAmount").html(
							"放贷金额：" + obj.amountFrom + "-"
							+ obj.amountTo + "万");
						$("#type").html(
							"产品类型" + obj.productType.productTypeName);
						$("#period").html("放贷期限：" + obj.period.periodName);
						$("#linkman").html("经理：" + obj.linkMan);
						$("#bank").html(obj.linkBank);

						$("#productId").val(obj.id);
						$("#productName").val(obj.proName);
					}
				}
			});

			$("#apply").click(function () {
				console.log($("#applyPersonIDCard").val() + "###");
				$.ajax({
					url: commonurl + "/addApply.apply",
					type: "POST",
					data: {
						"productId": $("#productId").val(),
						"productName": $("#productName").val(),
						"applyPersonIDCard": $("#applyPersonIDCard").val(),
						"applyPerson": $("#applyPerson").val(),
						"applyNum": $("#applyNum").val()
					},
					dataType: "json",
					success: function (data) {
						$("#applyModal").modal('hide');
						alert(data.msg)
						location.reload();
					}

				})
			});

			$.ajax({
				url: commonurl + "/selectByProductId.apply",
				type: "POST",
				data: {
					pageNo: 1,
					productId: productId
				},
				dataType: "json",
				success: function (data) {
					if (data.success) {
						obj = data.obj;
						console.log(data);
						var datas = {
							sources: obj.list,
							count: obj.list.length
						};
						$("#applyContent").html(template("applyTemplate", datas));
					} else {
						alert(data.msg);
					}
				}

			})
		})
	</script>
</head>

<body>

	<div class="wrap header oauto clear">
		<div class="fl" style="font-size: 20px; font-weight: bold; color: #fff; line-height: 40px; padding-left: 10px;">
			万里金融系统</div>
		<div class="fr">
			<a id="currentTime" href="#"> </a>
		</div>
	</div>
	<div class="logo-nav">
		<div class="wrap oauto">
			<div class="clear"></div>
		</div>
	</div>
	<div class="menu">
		<ul class="clear">
			<li><a href="index.html" class="cur">融资产品</a></li>
			<li><a href="news.html">每日新闻</a></li>
		</ul>
	</div>



	<div class="wrap font16">首页 >> 融资产品 >> 银投联贷</div>
	<div class="wrap clear">
		<div class="fl">
			<div class="detail_detail">
				<div class="success_tp clear">
					<div class="fl">银投联贷</div>
				</div>
				<div class="detail_detail_bt">
					<div class="detail_detail_bt1">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td id="proName">产品名称：银投联贷</td>
								<td id="proRate">放贷利率：8.6%（年化利率）</td>
							</tr>
							<tr>
								<td id="proCompany">发行单位：杭州银行</td>
								<td id="proAmount">放贷金额：50-500万</td>
							</tr>
							<tr>
								<td id="type">产品类型：信用贷</td>
								<td id="period">放贷期限：12个月</td>
							</tr>
						</table>
					</div>
					<div class="detail_detail_bt3 clear">
						<div class="fl">
							<span id="linkman">经理：杨经理</span><br /> <span id="bank"></span>
						</div>
						<div class="fr">
							<a href="javascript:;" data-toggle="modal" data-target="#applyModal" class="apply-btn" /> 申请
							</a>
						</div>
					</div>
				</div>
			</div>
			<div class="detail_detail_title title clear">
				<h1 class="fl">产品详情</h1>
			</div>
			<div class="detail_detail_in">
				<h1>
					<span class="logo1"></span>产品描述
				</h1>
				<p>银投联贷业务是指对于合作范围内的PE拟投或已投的科技型中小企业的借款申请，本行在综合考虑私募股权投资机构的投资管理能力和借款人未来发展前景等因素的基础上，以信用、股权质押、PE保证或类保证等方式，向科技型中小企业发放用于满足其日常经营资金需求的授信业务。
				</p>
				<h1>
					<span class="logo1"></span>功能特点
				</h1>
				<p>利用创投机构对科技型中小企业经营状况以及发展潜力的专业判断，有效控制客户准入风险；
					（2）股权融资和债权融资相结合，在不稀释股权的基础上有效解决企业流动资金需求； （3）建立起银行、创投机构与科技型中小企业的合作平台。</p>
				<h1>
					<span class="logo1"></span>相关要求
				</h1>
				<p>（1）贷款金额：根据借款人的实际资金需求、偿债能力及我行认可的授信方案综合确定银投联贷的贷款金额，该品种项下的最高金额不得超过创投公司实际投入到借款人的创投（风投）资金的80％。
					（2）贷款期限：由贷款人根据借款人实际生产周期、借款用途、借款人风险承受能力、经营特点等情况具体确定，不得超过创投公司和借款人约定的退出投资期限。
					（3）贷款利率：贷款利率按照中国人民银行利率政策及我行的贷款定价政策执行。</p>
			</div>
		</div>
		<div class="fr">
			<div class="success" id="applyContent">
				<script type="text/html" id="applyTemplate">
					<div class="success_tp">
						产品成功申请人<span class="fe4800">（ {{count}} ）</span>人
					</div>
					<div class="success_bt">
						<ul>
							{{each sources as source index}}
							<li>
								<h1>{{index+1}}</h1> <span>{{source.applyPerson}}</span>成功申请 {{source.applyNum}} 万元
							</li>
							{{/each}}
						</ul>
					</div>
				</script>
			</div>
		</div>
	</div>


	<!-- 申请 -->
	<div class="modal fade" id="applyModal" tabindex="-1" role="dialog" aria-labelledby="applyModal" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<form class="form-horizontal" role="form" action="">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
						</button>
						<h4 class="modal-title" id="myModalLabel">申请</h4>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<label for="productId" class="col-lg-2 control-label">产品ID</label>
							<div class="col-lg-10">
								<input type="text" class="form-control" id="productId" readonly="readonly"
									value="113333" />
							</div>
						</div>
						<div class="form-group">
							<label for="productName" class="col-lg-2 control-label">产品名称</label>
							<div class="col-lg-10">
								<input type="text" class="form-control" id="productName" readonly="readonly"
									value="银投联贷343434" />
							</div>
						</div>
						<div class="form-group">
							<label for="applyPerson" class="col-lg-2 control-label">申请人</label>
							<div class="col-lg-10">
								<input type="text" class="form-control" id="applyPerson" placeholder="申请人姓名" />
							</div>
						</div>
						<div class="form-group">
							<label for="applyPersonIDCard" class="col-lg-2 control-label">身份证号</label>
							<div class="col-lg-10">
								<input type="text" class="form-control" id="applyPersonIDCard" placeholder="申请人身份证号" />
							</div>
						</div>
						<div class="form-group">
							<label for="applyNum" class="col-lg-2 control-label">申请金额</label>
							<div class="col-lg-10">
								<input type="text" class="form-control" id="applyNum" placeholder="单位：万元" />
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
						<input id="apply" type="button" class="btn btn-primary" value="申请" />
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- 申请 -->

	<!--end-->
	<div class="footer">Copyright &copy;  版权所有 | <a href="./backend/login.html" target="_blank">后台管理入口</a></div>
</body>

</html>